package xiegd.com.springbootuse.demo.elaticsearch.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: xieguangda
 * @Date: 2021年08月09日 14:58
 */
//@Component
//@ConfigurationProperties(prefix = "elasticsearch")
//@Data
public class ElasticsearchMonitorProperties {

    /**
     *  esAddress.
     */
    private String esAddress;

    /**
     * 连接超时时间
     */
    private int connectTimeOut;
    /**
     * 连接超时时间
     */
    private int socketTimeOut;
    /**
     * 获取连接的超时时间
     */
    private int connectionRequestTimeOut;
    /**
     * 最大连接数
     */
    private int maxConnectNum;
    /**
     * 最大路由连接数
     */
    private int maxConnectPerRoute;

    /**
     * keepAlive保活策略
     */
    private int keepAliveMinutes;
}
